﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Auth;

public partial class front_MasterPage : System.Web.UI.MasterPage
{
    public NoapAuth NoapAuth = new NoapAuth();

    public int UserID;

    public string Role;

    public string[] ProfileArr;
    protected void Page_Load(object sender, EventArgs e)
    {
        Page.DataBind();
    }

    protected void Search(object sender, EventArgs e)
    {
        string str = TextBox1.Text.ToString().Trim();
        Response.Redirect("~/front/Search.aspx?search=" + str);
    }

    public front_MasterPage()
    {
        UserID = NoapAuth.UserID;

        Role = NoapAuth.Role;

        ProfileArr = NoapAuth.Profile;
    }
}
